package chixing.day09.interface_demo;

public class CpuTest {
    public static void main(String[] args) {
        Intel intel = new Intel();
        Nvidia nvidia = new Nvidia();
        Cpu cpu1 = new Intel();
        Cpu cpu2 = new Nvidia();

        intel.run();
        intel.stop();
        nvidia.run();
        nvidia.stop();

        cpu1.run();
        cpu2.run();

        fun(cpu1);

    }

    public static void fun(Cpu cpu){
        cpu.run();
    }
}
